<template>
  <div>
    <div id="appp">
      <div class="heaer">
        <img src="../img/头像.png" alt="" />
        <span>关注</span>
        <span>发现</span>
        <span>附近</span>
        <router-link :to="{ name: 'Search' }"><img src="../img/搜索图标.png" alt="" /></router-link>
      </div>
      <ul>
        <li v-for="v in items" :key="v.value" class="op">
          <img v-bind:src="v.photo" alt="" class="photo" />
          <div class="UserData">
            <p class="title">{{ v.title }}</p>
            <div class="user">
              <img v-bind:src="v.avatar" alt="" class="avatar" />
              <span>{{ v.name }}</span>
              <img src="../img/评分.png" alt="" class="score" />
              <span>{{ v.like }}</span>
            </div>
          </div>
        </li>
      </ul>
    </div>
    <router-view></router-view>
  </div>
</template>
  
<script>
export default {
  el: "#appp",
  data() {
    return {
      items: [
        {
          name: "厘米",
          avatar: require("../img/NoPath1.png"),
          like: "574",
          title: "我的狗也太可爱了把",
          photo: require("../img/Path1.png"),
          id: 0,
        },
        {
          name: "香自自",
          avatar: require("../img/NoPath2.png"),
          like: "1.4w",
          title: "人间萌物",
          photo: require("../img/Path2.png"),
          id: 1,
        },
        {
          name: "香自自",
          avatar: require("../img/NoPath2.png"),
          like: "1.4w",
          title: "人间萌物",
          photo: require("../img/Path2.png"),
          id: 1,
        },
        {
          name: "厘米",
          avatar: require("../img/NoPath1.png"),
          like: "574",
          title: "我的狗也太可爱了把",
          photo: require("../img/Path1.png"),
          id: 0,
        },
        {
          name: "香自自",
          avatar: require("../img/NoPath2.png"),
          like: "1.4w",
          title: "人间萌物",
          photo: require("../img/Path2.png"),
          id: 1,
        },
        {
          name: "厘米",
          avatar: require("../img/NoPath1.png"),
          like: "574",
          title: "我的狗也太可爱了把",
          photo: require("../img/Path1.png"),
          id: 0,
        },
      ],
    };
  },
};
// const vm = new Vue({

// })
</script>
  
<style >
* {
  margin: 0;
  padding: 0;
}

#appp {
  width: 100%;
  min-height: 100vh;
  background: url("../img/custom\ –\ 8.png") center center no-repeat;
  background-size: 100% 100%;
}

.photo {
  width: 120px;
  height: 120px;
}

.avatar {
  width: 25px;
  height: 25px;
}

.UserData span {
  font-size: 10px;
  margin-left: 6px;
}

.score {
  width: 15px;
  height: 15px;
  margin-left: 20px;
}

.title {
  font-size: 10px;
}

ul {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
}

.op {
  width: 150px;
  height: 180px;
  list-style: none;
  padding-left: 23px;
  padding-top: 15px;
  margin-left: 10px;
  margin-top: 10px;
}

.user {
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.heaer {
  width: 100%;
  height: 50px;
  background-color: rgb(251, 170, 83);
  position: fixed;
  top: 0;
  display: flex;

  align-items: center;
  /* padding-left: 5px; */
}

.heaer img {
  width: 40px;
  height: 40px;
  margin-left: 20px;
}

.heaer span {
  margin-left: 50px;
}</style>